<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 团购商品管理 <span class="c-gray en">&gt;</span> <a href="{:url('deal/index')}">团购列表</a>{:refresh()}</nav>
<div class="page-container">
	<div class="cl mt-d20">
		<div class="text-c">
			<form action="{:url('deal/index')}" method="get">
		 <span class="select-box inline">
			<select name="category_id" class="select">
              <option value="0">全部分类</option>
              {volist name="categorys" id="vo"}
              <option value="{$vo.id}" {if condition="$vo.id eq $category_id"}selected="selected"{/if}>{$vo.name}</option>
				{/volist}
            </select>
		</span>
				<span class="select-box inline">
			<select name="city_id" class="select">
              <option value="0">全部城市</option>
              {volist name="citys" id="vo"}
              <option value="{$vo.id}" {if condition="$vo.id eq $city_id"}selected="selected"{/if}>{$vo.name}</option>
				{/volist}
            </select>
		</span> 日期范围：
				<input type="text" name="start_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="{$start_time}" style="width:120px;" >
				-
				<input type="text" name="end_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="{$end_time}"  style="width:120px;">
				<input type="text" name="name"   value="{$name}" placeholder=" 商品名称" style="width:250px" class="input-text">
				<button name=""  class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索
				</button>
			</form>
		</div>
	</div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
			<tr class="text-c">
				<th width="20">ID</th>
				<th width="100">商品名称</th>
				<th width="40">栏目分类</th>
				<th width="40">城市</th>
				<th width="40">库存</th>
				<th width="80">开始结束时间</th>
				<th width="80">申请时间</th>
				<th width="30">排序序号</th>
				<th width="60">状态</th>
				<th width="40">操作</th>
			</tr>
			</thead>
			<tbody>
			{volist name="deals" id="vo"}
			<tr class="text-c">
				<td>{$vo.id}</td>
				<td>{$vo.name}</td>
				<td>{$categoryArrs[$vo.category_id]}</td>
				<td>{$cityArrs[$vo.se_city_id]}</td>
				<td>{$vo.total_count}</td>
				<td>{$vo.start_time|date="y-m-d h:i", ###}--{$vo.end_time|date="y-m-d h:i", ###}</td>
				<td>{$vo.update_time}</td>
				<td class="text-c listorder"><input type="text" size="3" name="listorder" attr-id="{$vo.id}" attr-model="Deal" value="{$vo.listorder}"></td>
				<td>{$vo.status|status}</td>
				<td class="td-manage">
					<a style="text-decoration:none" class="ml-5" onClick="" href="{:url('deal/detail',['id'=>$vo.id])}" title="查看"><i class="Hui-iconfont">&#xe6df;</i></a>
					<a style="text-decoration:none" class="ml-5" onClick="o2o_del('{:url('base/status',['id'=>$vo.id,'status'=>-1,'model'=>'Deal'])}')" href="javascript:;" title="下架"><i class="Hui-iconfont">&#xe6e2;</i></a>
				</td>
			</tr>
			{/volist}
			</tbody>
		</table>
	</div>
	{:pagination($deals)}
</div>
<script>
    var SCOPE={
        'listorder_url':"{:url('base/listorder')}",
    };
</script>
<!--包含头部文件-->
{include file="public/footer" /}
<script src="__STATIC__/admin/hui/lib/My97DatePicker/WdatePicker.js"></script>
